// 全局变量
@primary-color: #1890ff;
@text-color: #333;
@border-radius: 4px;

// 全局样式
.home-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;

  h1 {
    color: @text-color;
    text-align: center;
    margin-bottom: 30px;
  }

  .upload-area {
    border: 2px dashed #ddd;
    border-radius: @border-radius;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color 0.3s;

    &:hover {
      border-color: @primary-color;
    }
  }

  .upload-label {
    cursor: pointer;
    display: block;

    p {
      margin: 10px 0;
      color: @text-color;
    }
  }

  .compression-status {
    .progress-bar {
      background-color: #f0f0f0;
      border-radius: @border-radius;
      height: 20px;
      overflow: hidden;
      margin-top: 10px;

      .progress {
        background-color: @primary-color;
        height: 100%;
        transition: width 0.3s;
      }
    }
  }

  .file-info {
    margin: 20px 0;

    .selected-file {
      color: @text-color;
      margin-bottom: 10px;
    }

    .output-path-selector {
      display: flex;
      align-items: center;
      gap: 10px;

      .path-display {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;

        span {
          flex: 1;
          color: @text-color;
        }
      }
    }
  }

  .action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;

    .primary-button {
      background-color: @primary-color;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: @border-radius;
      cursor: pointer;
      transition: opacity 0.3s;

      &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      &:not(:disabled):hover {
        opacity: 0.8;
      }
    }
  }
}